<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fmt_rt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="x_rt" uri="http://java.sun.com/jstl/xml_rt"%>
<%@ taglib prefix="wr_fn" uri="http://njo.org/taglib/functions"%>
<h3><!-- img alt="" src="" --><a name="welcome">${board.title}</a></h3>
<table class="forumview" width="98%">
<tr>
  <th align="right">
<c:if test="${subject.flg==100}">
  [<a href="${pageContext.request.contextPath}/processor.untopsubject.tiles?id=${subject.id}&board=${board.id}">解除置顶</a>]
</c:if>
[<a href="${pageContext.request.contextPath}/processor.tacktopsubject.tiles?id=${subject.id}&board=${board.id}">${subject.flg==100 ? "再置顶" : "置顶"}</a>]
<c:if test="${subject.replyid==null}">
  [<a href="${pageContext.request.contextPath}/processor.deletesubject.tiles?id=${subject.id}&board=${board.id}">删除</a>]
</c:if>
<c:if test="${subject.replyid!=null}">
  [<a href="${pageContext.request.contextPath}/processor.deletesubject.tiles?id=${subject.replyid}&board=${board.id}">删除主文章</a>]
  [<a href="${pageContext.request.contextPath}/processor.deletesubject.tiles?id=${subject.id}&board=${board.id}">删除</a>]
</c:if>
[<a href="javascript:history.go(-1)">返回</a>]
[<a href="${pageContext.request.contextPath}/processor.prereplysubject.tiles?id=${subject.id}&replyid=${subject.replyid}">回复帖子</a>]
[<a href="${pageContext.request.contextPath}/processor.prepostsubject.tiles?board=${subject.board}">发表文章</a>]
[<a <c:if test="${subject.previousid!=null}">href="${pageContext.request.contextPath}/processor.loadsubject.tiles?id=${subject.previousid}"</c:if>>上一篇</a>]
[<a <c:if test="${subject.nextid!=null}">href="${pageContext.request.contextPath}/processor.loadsubject.tiles?id=${subject.nextid}"</c:if>>下一篇</a>]
[<a <c:if test="${subject.samesubjectpreviousid!=null}">href="${pageContext.request.contextPath}/processor.loadsubject.tiles?id=${subject.samesubjectpreviousid}"</c:if>>同主题上篇</a>]
[<a <c:if test="${subject.samesubjectnextid!=null}">href="${pageContext.request.contextPath}/processor.loadsubject.tiles?id=${subject.samesubjectnextid}"</c:if>>同主题下篇</a>]
  </th>
</tr>
<tr>
  <td>
<pre class="break-word">
发信人: ${subject.author} (前途), 板块: ${board.title}
标  题: ${subject.title}
发信站: [FROM: ${subject.host}] (<fmt:formatDate value="${subject.updatetimestamp}" pattern="EEE MMM dd HH:mm yyyy"/>)
--
  <c:out value="${subject.content}" escapeXml='true'/> 
--
※ 来源:·Java技术·[FROM: ${subject.host}]
</pre>
  </td>
</tr>
<tr>
  <th align="right">
<c:if test="${subject.flg==100}">
  [<a href="${pageContext.request.contextPath}/processor.untopsubject.tiles?id=${subject.id}&board=${board.id}">解除置顶</a>]
</c:if>
[<a href="${pageContext.request.contextPath}/processor.tacktopsubject.tiles?id=${subject.id}&board=${board.id}">${subject.flg==100 ? "再置顶" : "置顶"}</a>]
<c:if test="${subject.replyid==null}">
  [<a href="${pageContext.request.contextPath}/processor.deletesubject.tiles?id=${subject.id}&board=${board.id}">删除</a>]
</c:if>
<c:if test="${subject.replyid!=null}">
  [<a href="${pageContext.request.contextPath}/processor.deletesubject.tiles?id=${subject.replyid}&board=${board.id}">删除主文章</a>]
  [<a href="${pageContext.request.contextPath}/processor.deletesubject.tiles?id=${subject.id}&board=${board.id}">删除</a>]
</c:if>
[<a href="javascript:history.go(-1)">返回</a>]
[<a href="${pageContext.request.contextPath}/processor.prereplysubject.tiles?id=${subject.id}&replyid=${subject.replyid}">回复帖子</a>]
[<a href="${pageContext.request.contextPath}/processor.prepostsubject.tiles?board=${subject.board}">发表文章</a>]
[<a <c:if test="${subject.previousid!=null}">href="${pageContext.request.contextPath}/processor.loadsubject.tiles?id=${subject.previousid}"</c:if>>上一篇</a>]
[<a <c:if test="${subject.nextid!=null}">href="${pageContext.request.contextPath}/processor.loadsubject.tiles?id=${subject.nextid}"</c:if>>下一篇</a>]
[<a <c:if test="${subject.samesubjectpreviousid!=null}">href="${pageContext.request.contextPath}/processor.loadsubject.tiles?id=${subject.samesubjectpreviousid}"</c:if>>同主题上篇</a>]
[<a <c:if test="${subject.samesubjectnextid!=null}">href="${pageContext.request.contextPath}/processor.loadsubject.tiles?id=${subject.samesubjectnextid}"</c:if>>同主题下篇</a>]
  </th>
</tr>

</table>
